package com.ruoyi.address.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.address.mapper.TDriverRideShareAddressMapper;
import com.ruoyi.address.domain.TDriverRideShareAddress;
import com.ruoyi.address.service.ITDriverRideShareAddressService;

/**
 * 顺风单地址Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-26
 */
@Service
public class TDriverRideShareAddressServiceImpl implements ITDriverRideShareAddressService 
{
    @Autowired
    private TDriverRideShareAddressMapper tDriverRideShareAddressMapper;

    /**
     * 查询顺风单地址
     * 
     * @param addressId 顺风单地址主键
     * @return 顺风单地址
     */
    @Override
    public TDriverRideShareAddress selectTDriverRideShareAddressByAddressId(Long addressId)
    {
        return tDriverRideShareAddressMapper.selectTDriverRideShareAddressByAddressId(addressId);
    }

    /**
     * 查询顺风单地址列表
     * 
     * @param tDriverRideShareAddress 顺风单地址
     * @return 顺风单地址
     */
    @Override
    public List<TDriverRideShareAddress> selectTDriverRideShareAddressList(TDriverRideShareAddress tDriverRideShareAddress)
    {
        return tDriverRideShareAddressMapper.selectTDriverRideShareAddressList(tDriverRideShareAddress);
    }

    /**
     * 新增顺风单地址
     * 
     * @param tDriverRideShareAddress 顺风单地址
     * @return 结果
     */
    @Override
    public int insertTDriverRideShareAddress(TDriverRideShareAddress tDriverRideShareAddress)
    {
        return tDriverRideShareAddressMapper.insertTDriverRideShareAddress(tDriverRideShareAddress);
    }

    /**
     * 修改顺风单地址
     * 
     * @param tDriverRideShareAddress 顺风单地址
     * @return 结果
     */
    @Override
    public int updateTDriverRideShareAddress(TDriverRideShareAddress tDriverRideShareAddress)
    {
        return tDriverRideShareAddressMapper.updateTDriverRideShareAddress(tDriverRideShareAddress);
    }

    /**
     * 批量删除顺风单地址
     * 
     * @param addressIds 需要删除的顺风单地址主键
     * @return 结果
     */
    @Override
    public int deleteTDriverRideShareAddressByAddressIds(Long[] addressIds)
    {
        return tDriverRideShareAddressMapper.deleteTDriverRideShareAddressByAddressIds(addressIds);
    }

    /**
     * 删除顺风单地址信息
     * 
     * @param addressId 顺风单地址主键
     * @return 结果
     */
    @Override
    public int deleteTDriverRideShareAddressByAddressId(Long addressId)
    {
        return tDriverRideShareAddressMapper.deleteTDriverRideShareAddressByAddressId(addressId);
    }
}
